package router

import (
	"api/config"
	"api/internal/handler"
	"api/pkg"
	"github.com/gin-gonic/gin"
)

func SetVideoRouter(c *gin.RouterGroup) {
	videoRouter := c.Group("/video")
	{
		videoRouter.GET("/list", handler.VideoList)
		videoRouter.Use(pkg.JWTAuth(config.DataConfig.Jwt.SecretKey))
		videoRouter.POST("/create", handler.VideoCreate)
	}
}
